package com.spark.common.core.entity.generation.vo;

import com.spark.common.core.entity.generation.GenModel;
import com.spark.common.core.entity.generation.GenModelFields;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;

import java.util.List;

/**
 * 创建模型Vo
 *
 * @author LYCHEE
 * @date 2025/2/25 14:17
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class CreateModelVo extends GenModel {

    public CreateModelVo() {}
    public CreateModelVo(GenModel model) {
        BeanUtils.copyProperties(model, this);
    }

    /**
     * 模型字段信息
     */
    private List<GenModelFields> fields;

}
